libmyfile.so:add.o mul.o
	gcc -shared add.o mul.o -o libmyfile.so 
add.o:add.c
	gcc -c -fPIC add.c -o add.o
mul.o:mul.c
	gcc -c -fPIC mul.c -o mul.o

.PHONY:myfile 
myfile_d:
	mkdir -p myfile_d/lib 
	mkdir -p myfile_d/include
	cp -rf *.h ./myfile_d/include 
	cp -rf *.so ./myfile_d/lib 

.PHONY:clean
clean:
	rm -rf *.o libmyfile.so myfile_d

